package com.eshop.modules.user.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

public class AddressDetailParam implements Serializable {
    @ApiModelProperty("城市")
    private String city;
    @JsonProperty("city_id")
    @ApiModelProperty("城市ID")
    private Integer cityId;
    @ApiModelProperty("地区")
    private String district;
    @ApiModelProperty("省份")
    private String province;

    /* access modifiers changed from: protected */
    public boolean canEqual(Object other) {
        return other instanceof AddressDetailParam;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AddressDetailParam)) {
            return false;
        }
        AddressDetailParam other = (AddressDetailParam) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Integer this$cityId = getCityId();
        Integer other$cityId = other.getCityId();
        if (this$cityId != null ? !this$cityId.equals(other$cityId) : other$cityId != null) {
            return false;
        }
        String this$city = getCity();
        String other$city = other.getCity();
        if (this$city != null ? !this$city.equals(other$city) : other$city != null) {
            return false;
        }
        String this$district = getDistrict();
        String other$district = other.getDistrict();
        if (this$district != null ? !this$district.equals(other$district) : other$district != null) {
            return false;
        }
        String this$province = getProvince();
        String other$province = other.getProvince();
        if (this$province == null) {
            if (other$province == null) {
                return true;
            }
        } else if (this$province.equals(other$province)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        Integer $cityId = getCityId();
        int hashCode = $cityId == null ? 43 : $cityId.hashCode();
        String $city = getCity();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = $city == null ? 43 : $city.hashCode();
        String $district = getDistrict();
        int i3 = (i2 + hashCode2) * 59;
        int hashCode3 = $district == null ? 43 : $district.hashCode();
        String $province = getProvince();
        int i4 = (i3 + hashCode3) * 59;
        if ($province != null) {
            i = $province.hashCode();
        }
        return i4 + i;
    }

    public void setCity(String city2) {
        this.city = city2;
    }

    @JsonProperty("city_id")
    public void setCityId(Integer cityId2) {
        this.cityId = cityId2;
    }

    public void setDistrict(String district2) {
        this.district = district2;
    }

    public void setProvince(String province2) {
        this.province = province2;
    }

    public String toString() {
        return "AddressDetailParam(cityId=" + getCityId() + ", city=" + getCity() + ", district=" + getDistrict() + ", province=" + getProvince() + ")";
    }

    public Integer getCityId() {
        return this.cityId;
    }

    public String getCity() {
        return this.city;
    }

    public String getDistrict() {
        return this.district;
    }

    public String getProvince() {
        return this.province;
    }
}
